package com.burgeon.backend.SHOPBACKEND.mappers;

import com.burgeon.backend.SHOPBACKEND.entity.*;
import com.burgeon.backend.SHOPBACKEND.entity.Android.EmpBindingRecord;
import com.burgeon.backend.SHOPBACKEND.entity.FAB.FABVo;
import com.burgeon.backend.SHOPBACKEND.entity.FAB.FabEntity;

import java.util.ArrayList;
import java.util.List;

public interface AndroidMapper {
    String getWeChatImage(String mediaid,String account);
    Integer insertWeChatImage(String mediaid,String imgurl,String account);
    /********************************************************/

    //新增App拍照头像
    Integer insertAppHeadImg(String uid,String headimg,String account);

    /****************************************************/
    Integer createErpBingingRecord(EmpBindingRecord empBindingRecord);

    EmpBindingRecord findErpBingingRecord(String id,String account);

    String GetTokenByToken(String token);
    String GetTokenByUrl(String url);
    List<String> getBanner(String id);

    /********************商城品牌分组*****************************/
    ArrayList<BrandApp> getBrandByAccount(String account);
    ArrayList<BrandApp> findBrandByName(String account,String name);
    List<Goods> getGoodsByBrandId(String brandId,Integer start,String account);

    /**+++++++++++++++++++++商城分组+++++++++++++++++++++++*/
    List<ClassifyVo> getClassify(String account);

    //小分类
    List<ClassifyItem> getClaItemByCid(String cId);

    //根据小分类查看商品
    List<Goods> getGoodsAll(String cIId,Integer start,String account);

    List<Goods> findByCode(String code,Integer start,String account);

    //小程序码
    ArrayList<String> GetGoodLink(String gid,String daoId,String token);

    Integer insertLinkImg(String gid,String linkimg,String daoId,String token);

    //模糊查询
    List<ClassifyVo> findByName(String account,String name);

    /**+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
    Integer upGroupId(String beforeId, String afterId);

    /*******************************FAB卖点培训*********************************************/
    List<FABVo> findFabByCodeOrName(String account, String code);

    FABVo findDataByCode(String account, String code);

    List<String> getImgFAB(String id);

    /****************************************获取微信小程序logo******************************************************/
    String getWeiLogo(String account);

}
